package com.deli.springboot.entity;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
    private Long id;
    private String author;
    private String bName;
    private String coverImg;
    private Date cDate;
    private String barCode;
    private Integer status;//1是在架 0是借出
    private String description;
    private Integer cType;//1是捐赠 0是购入
    private Integer donateUserId;//捐赠人id

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", author='" + author + '\'' +
                ", bName='" + bName + '\'' +
                ", coverImg='" + coverImg + '\'' +
                ", cDate=" + cDate +
                ", barCode='" + barCode + '\'' +
                ", status=" + status +
                ", description='" + description + '\'' +
                ", cType=" + cType +
                ", donateUserId=" + donateUserId +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public Date getcDate() {
        return cDate;
    }

    public void setcDate(Date cDate) {
        this.cDate = cDate;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getcType() {
        return cType;
    }

    public void setcType(Integer cType) {
        this.cType = cType;
    }

    public Integer getDonateUserId() {
        return donateUserId;
    }

    public void setDonateUserId(Integer donateUserId) {
        this.donateUserId = donateUserId;
    }
}
